<?php

class Perfis extends Zend_Db_Table_Abstract
{

    protected $_name = 'perfil';
    protected $_dependentTables = array('Usuarios');
    
    public function getPerfil($id)
    {
        $id = (int)$id;
        $row = $this->fetchRow('id = ' . $id);
        if (!$row) {
            return null;
        }
        else {
            return $row->perfil;       
            }
    }
}

